package bolangit.test.youbike.records.service.impl;

import bolangit.test.youbike.records.entity.BorrowCarRecords;
import bolangit.test.youbike.records.mapper.BorrowCarRecordsMapper;
import bolangit.test.youbike.records.service.BorrowCarRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wjf
 * @description TODO
 * @date 2019/1/26 23:12
 */
@Service
public class BorrowCarRecordsServiceImpl implements BorrowCarRecordsService {

    @Autowired
    private BorrowCarRecordsMapper bcrMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return bcrMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BorrowCarRecords record) {
        return bcrMapper.insert(record);
    }

    @Override
    public int insertSelective(BorrowCarRecords record) {
        return bcrMapper.insertSelective(record);
    }

    @Override
    public BorrowCarRecords selectByPrimaryKey(Long id) {
        return bcrMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BorrowCarRecords record) {
        return bcrMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BorrowCarRecords record) {
        return bcrMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<BorrowCarRecords> selectAll(BorrowCarRecords record) {
        return bcrMapper.selectAll(record);
    }
}
